Using Lisp as a Markup Language The LAML Approach
نویسنده
چکیده
Lisp is widely known as an extremely versatile language. In this paper we will demonstrate that Lisp can be used as a powerful markup language for WWW authoring and for provision of information on the Internet. Using the LAML approach, as introduced in this paper, we write textual documents directly in Lisp; Function calls serve as applications of tags, as known from the SGML family of markup languages. The easy and uniform access to abstraction is the main advantage of using a programming language as a markup language. In addition, the direct availability of a powerful programming language allows the author to automate many trivial tasks in the writing process. We describe a systematic mirroring of HTML in Scheme, and we refer to a number of different document styles based on this mirroring.
منابع مشابه
Web Programming in Scheme - the LAML approach
Functional programming fits well with the use of descriptive markup in HTML and XML. There is also a good fit between S-expressions in Lisp and the means of expression in HTML and XML. These similarities are exploited in LAML (Lisp Abstracted Markup Language) which is a software package for Scheme. LAML supports exact mirrors of different versions of HTML. In the mirrors each HTML element is re...
متن کاملXML in LAML - Web Programming in Scheme
The LAML software package makes XML available in Scheme and the functional programming paradigm. The elements of an XML language are mirrored as functions in Scheme. The parameter profile of the mirror functions is designed to provide for recognizability in comparison to XML, and to make a good fit with Scheme seen as a list processing language. The paper characterizes the mirrors by means of s...
متن کاملWeb programming in Scheme with LAML
Functional programming fits well with the use of descriptive markup in HTML and XML. There is also a good fit between S-expressions in Lisp and the XML data set. These similarities are exploited in LAML which is a software package for Scheme. LAML supports exact mirrors of the three variants of XHTML 1.0, SVG 1.0, and a number of more specialized XML languages. The mirrors are all synthesized f...
متن کاملXML Transformations in Scheme with LAML - a Minimalistic Approach
Transformation of XML do uments is often supported by spe ial purpose languages that make use of pattern mat hing and repla ement. Many XML programmers need to learn and understand one of these languages for transformation purposes. In this paper we ontrast and ompare spe ial purpose, pattern mat hing solutions with transformation programs written in a general purpose, fun tional programming la...
متن کاملEnabling Semantic Web Programming by Integrating RDF and Common Lisp
This paper introduces “Wilbur”, an RDF and DAML toolkit implemented in Common Lisp. Wilbur exposes the RDF data model as a frame-based representation system; an object-oriented view of frames is adopted, and RDF data is integrated with the host language by addressing issues of input/output, data structure compatibility, and error signaling. Through seamless integration we have achieved a progra...
متن کامل